export function getDefaultDate() {
    const date = new Date();
    const year = date.getFullYear();
    const month = date.getMonth();
    const day = date.getDate();
    return year + "-" + (month + 1) + "-" + day;
}

// 输入一个长度,转换为相同长度的数组
export function transformDayToArray(index) {
    return new Array(index)
        .toString()
        .split(",")
        .map(function (item, i) {
            return ++i;
        });
}

// 输入两个数字,得到两个数之间的数组
export function transformNumberToArray(min, max) {
    let Array = [];
    while (min <= max) {
        Array.push(min)
        min++
    }
    return Array
}